<!--mv详情页-->
<template>
  <div>
    <TitleBack :title-name="value"/>
    <MVListData :id="MVId"/>
    <CommentList :MVId="MVId"/>
  </div>
</template>

<script>
import TitleBack from "@/components/TitleBack";
// import {mapState} from "vuex";
import {getMVData} from "@/api/login-aip";
import MVListData from "@/views/MV/components/MVListData";
import CommentList from "@/views/MV/components/CommentList";

export default {
  name: "MVComments",
  data(){
    return{
      value:'',
      MVdata:""
    }
  },
  components: {
    TitleBack,
    MVListData,
    CommentList
  },
  computed:{
    // ...mapState(["MVId"])
  },
  props: {
    id: [Number,String]
  },
  created() {
    this.MVId=this.$route.query.MVId
    getMVData(this.$route.query.MVId).then(res=>{
      // console.log(res.data)
      this.MVdata=res.data
      this.value = res.data.name
    })
  }
}
</script>

<style scoped>

</style>